package com.twu.biblioteca;

/**
 * Created with IntelliJ IDEA.
 * User: kush jain
 * Date: 6/28/13
 * Time: 9:25 PM
 * To change this template use File | Settings | File Templates.
 */
public class MenuChoice {
    private int optionNo;
    private String label;
    MenuChoice(int menuNo, String label)
    {

         this.label = label;
         optionNo = menuNo;
    }
    MenuChoice(int menuNo)
    {
        optionNo = menuNo;
    }
    public void setLabel(String label)
    {
        this.label = label;
    }
    public String getLabel()
    {
        return label;
    }
    public boolean optionNoEquals(int optionNo)
    {
        return (this.optionNo == optionNo);
    }

    @Override
    public String toString()
    {
        return optionNo + "\t" + label;
    }


}
